home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Devices / ATA Demo / ATADemo 1.2 ReadMe < prev   
Encoding:
Text File  |  1998-07-14  |  3.5 KB  |  90 lines  |  [TEXT/R*ch]

  1.      ATADemo - Macintosh ATA Manager Sample
  2.  
  3.      Version: 1.2
  4.  
  5.      Apple Macintosh Developer Technical Support
  6.      Written by: Vinne Moscaritolo
  7.  
  8.      Copyright Apple Computer, Inc
  9.  
  10.      You may incorporate this sample code into your applications
  11.      without restriction, though the sample code has been provided "AS
  12.      IS" and the responsibility for its operation is 100% yours.
  13.      However, what you are not permitted to do is to redistribute the
  14.      source as "DTS Sample Code" after having made changes. If you're
  15.      going to re-distribute the source, we require that you make it
  16.      clear in the source that the code was descended from Apple Sample
  17.      Code, but that you've made changes.
  18.  
  19.      ATADemo is a CodeWarrior C sample that will call the ATA
  20.      Manager and scan the ATA bus and list the various device
  21.      configuration data. on my PB 1400 it produced the following
  22.      results:
  23.  
  24.      ------------------------------------------------------------------
  25.  
  26.      Macintosh ATA Manager Sample
  27.  
  28.      ATA Manager inquiry:
  29.          ATA Manager Version: 2.0.0.1 (hex 02006601)
  30.          Busses:     5
  31.          Devices:    2
  32.          PIO Modes:  4
  33.          DMA Modes:  0
  34.          Multi DMA Modes:0
  35.      -----------------------------------------
  36.  
  37.      Device 0 .ATADisk
  38.      Configuration: (ATA, Internal)
  39.                       Configuration word 045a
  40.                                Cylinders 1575
  41.                                    Heads 16
  42.                              Bytes/Track 0
  43.                             Bytes/Sector 0
  44.                            Sectors/Track 0
  45.                Vendor Unique (word 7..9) 0000 0000 0000
  46.                            Serial Number "1R15R1Q2340"
  47.                              Buffer Type 0003
  48.       Buffer size in 512 byte increments 192
  49.            Number of ECC bytes available 4
  50.                        Firmware Revision "A91C54"
  51.                             Model Number "IBM-DSOA-20810"
  52.           Capability Flags (word 47..53) 0010 0000 0f00 0000 0200 0200 0003
  53.                 Cylinders (current mode) 1575
  54.                     Heads (current mode) 16
  55.             Sectors/Track (current mode) 63
  56.              Current Capacity in Sectors 965738520
  57.          Multiple Sector Capability Flag 0108
  58.         Current User-addressable Sectors 965738520
  59.      Single Word DMA Transfer Mode Flags 0007
  60.        Multiword DMT Transfer Mode Flags 0407
  61.      -----------------------------------------
  62.  
  63.      Device 4 .AppleCD
  64.      Configuration: (ATAPI, Media Bay)
  65.                       Configuration word 85c0
  66.                                Cylinders 0
  67.                                    Heads 0
  68.                              Bytes/Track 0
  69.                             Bytes/Sector 0
  70.                            Sectors/Track 0
  71.                Vendor Unique (word 7..9) 0000 0000 0000
  72.                            Serial Number ""
  73.                              Buffer Type 0003
  74.       Buffer size in 512 byte increments 256
  75.            Number of ECC bytes available 0
  76.                        Firmware Revision "3.0B"
  77.                             Model Number "CD-46E"
  78.           Capability Flags (word 47..53) 0000 0000 2f00 0000 0200 0200 0002
  79.                 Cylinders (current mode) 0
  80.                     Heads (current mode) 0
  81.             Sectors/Track (current mode) 0
  82.              Current Capacity in Sectors 0
  83.          Multiple Sector Capability Flag 0000
  84.         Current User-addressable Sectors 0
  85.      Single Word DMA Transfer Mode Flags 0007
  86.        Multiword DMT Transfer Mode Flags 0103
  87.      -----------------------------------------
  88.  
  89.  
  90.